import com.wyl.config.MyConfig
import com.wyl.pojo.User
import org.junit.Test
import org.springframework.beans.factory.getBean
import org.springframework.context.annotation.AnnotationConfigApplicationContext

class ConfigTest {
    @Test
    fun test() {
        val ctx = AnnotationConfigApplicationContext(MyConfig::class.java)
        val user = ctx.getBean<User>()
        println(user)
    }
}